﻿using System.Collections.Generic;
using System.Linq;
using SharpLite.Domain;
using System.ComponentModel.DataAnnotations;

namespace DAEProde.Domain
{
    public class Tournament : Entity
    {
        [Display(Name = "Nombre")]
        public virtual string Name { get; set; }

        // one-to-may desde torneo a fechas
        [Display(Name = "Fechas")]
        public virtual IList<MatchDate> MatchDates { get; set; }

        // many-to-many entre torneo y equipo
        [Display(Name = "Equipos")]
        public virtual IList<Team> Teams { get; set; }

        public Tournament()
        {
            MatchDates = new List<MatchDate>();
            Teams = new List<Team>();
        }
    }
}
